package net.betou.core.entity;

import java.util.HashMap;
import java.util.Map;



public class ConfigLogin{
	
	public static final Map< String, String > roleExtMap;
	public static final Map< String, String > moveDataMap;
	
	public static final String CONFIG_INTERMEDIA = "config_intermedia"; // 机构
	public static final String CONFIG_ADMIN = "config_admin";
	public static final String CONFIG_USER = "config_user";
	public static final String CONFIG_VIDEO = "config_video";
	public static final String CONFIG_TRADE = "config_trade";
	public static final String CONFIG_CLOSE_TRADE = "config_closeTrade";
	public static final String CONFIG_NOTICE = "config_notice";
	public static final String CONFIG_NEWS = "config_news";
	public static final String CONFIG_CATEGORY = "config_category";
	//public static final String CONFIG_ACCOUNT = "config_account";
	public static final String CONFIG_CONTENT = "config_content";
	public static final String CONFIG_AGENT  = "config_agent"; // 代理
	
	public static final String CONFIG_ROLE = "config_role";
	public static final String CONFIG_SUGGESTION = "config_suggestion";
	
	static{
		roleExtMap = new HashMap< String, String > ( );
		
		//roleExtMap.put( CONFIG_INTERMEDIA , "机构" );
		roleExtMap.put( CONFIG_ADMIN, "管理员" );
		roleExtMap.put( CONFIG_USER, "客户" );
		roleExtMap.put( CONFIG_TRADE, "预警" );
		roleExtMap.put( CONFIG_CLOSE_TRADE, "平仓" );
		roleExtMap.put( CONFIG_NOTICE, "公告" );
		roleExtMap.put( CONFIG_CATEGORY, "品种" );
		roleExtMap.put( CONFIG_CONTENT, "内容" );
		roleExtMap.put( CONFIG_AGENT, "代理商" );
		roleExtMap.put( CONFIG_ROLE, "角色" );
		roleExtMap.put( CONFIG_SUGGESTION, "意见");
		
		moveDataMap = new HashMap< String, String >( );
		
		moveDataMap.put( "User", "客户" );
		moveDataMap.put( "Notice", "公告" );
		moveDataMap.put( "Content", "内容" );
		moveDataMap.put( "Trade", "预警数据" );
		moveDataMap.put( "Category", "品种" );
		
	}
	
	public Integer getErrorInterval( ) {
		return 30;
	}
	
	public Integer getErrorTimes() {
			return 3;
	}
}
